<?php

namespace app\common\validate;

use think\Validate;

class UserComplaint extends Validate
{

    /**
     * 验证规则
     */
    protected $rule = [
        'id' => 'require',
        'user_id' => 'require',
        'content' => 'require',
    ];

    /**
     * 提示消息
     */
    protected $message = [
        "id.require" => "缺少参数id",
        "user_id.require" => "缺少参数用户id",
        "content.require" => "请输入内容建议",
    ];

    /**
     * 字段描述
     */
    protected $field = [
    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'add' => ['user_id', 'content'],
        'update' => ['id', 'user_id', 'content'],
    ];


}
